# Warning: autogenerated
obj-m := mvpkm.o
mvpkm-objs := 	vfp_switch.o check_kconfig.o cpufreq_kernel.o mksck_kernel.o montimer_kernel.o mutex_kernel.o mvpkm_comm_ev.o mvpkm_main.o qp_host_kernel.o qp_common.o mksck_shared.o

#ccflags-y += -fno-pic -fno-dwarf2-cfi-asm -march=armv7-a -D__linux__
ccflags-y += -fno-pic -fno-dwarf2-cfi-asm  -D__linux__
ccflags-y += -mfpu=neon -DLIB_ARM_VERSION=7 -DIN_MODULE -DGPLED_CODE
ccflags-y += --std=gnu89 -O2 -g2 -ggdb -mapcs -fno-optimize-sibling-calls -mno-sched-prolog
ccflags-$(CONFIG_VMWARE_MVP_DEBUG) += -DMVP_DEBUG

asflags-y += -mfpu=neon -DLIB_ARM_VERSION=7 -DIN_MODULE -DGPLED_CODE
asflags-y += -mfloat-abi=softfp

LOWMEMKILLER_PATH := $(srctree)/drivers/staging/android/lowmemorykiller.c
ifeq ($(wildcard $(LOWMEMKILLER_PATH)),)
$(error "Unable to find lowmemorykiller.c at $(LOWMEMKILLER_PATH)")
endif
LOWMEMKILLER_MD5 := $(shell md5sum $(LOWMEMKILLER_PATH) | cut -f1 -d\ )
LOWMEMKILLER_SUPPORT := $(srctree)/arch/arm/mvp/mvpkm/lowmemkiller_variant.sh
LOWMEMKILLER_SHRINK_MD5 := $(shell $(SHELL) $(LOWMEMKILLER_SUPPORT) $(LOWMEMKILLER_PATH) | cut -f1 -d\ )
LOWMEMKILLER_VARIANT := $(shell $(SHELL) $(LOWMEMKILLER_SUPPORT) $(LOWMEMKILLER_PATH) | cut -f2 -d\ )
ccflags-y += \
        -DLOWMEMKILLER_VARIANT=$(LOWMEMKILLER_VARIANT) \
        -DLOWMEMKILLER_SHRINK_MD5=$(LOWMEMKILLER_SHRINK_MD5) \
        -DLOWMEMKILLER_MD5=$(LOWMEMKILLER_MD5)
